<?php


namespace app\api\model;

/***
 * 聊天记录模型
 * Class Communication
 * @package app\api\model
 */
class Communication extends Base
{
    protected $autoWriteTimestamp = 'datetime';

    //关联User信息表
    public function user()
    {
        return $this->belongsTo('User','fromid');
    }

}